﻿<div class="dac-tinh">
            <table cellspacing="0" cellpadding="0" border="0" width="100%" id="thuoc-tinh-san-pham">
                <tbody>
                    <tr>
                        <td width="8" valign="top" style="background-color: rgb(0, 0, 0);">
                        </td>
						<td align="left" width="41" valign="top" class="<?php echo ($this->type!='product')?'listsp_d':'listsp' ?>">
                            <a href="index.php?c=search&type=article&keyword=<?php echo $this->keyword ?>">Tin tức & Sự kiện</a>
                        </td>
                        <td align="left" width="41" valign="top" class="<?php echo ($this->type=='product')?'listsp_d':'listsp' ?>">
                            <a href="index.php?c=search&type=product&keyword=<?php echo $this->keyword ?>">Sản phẩm</a>
                        </td>
                        <td align="left" width="205" valign="top" style="background-color: rgb(0, 0, 0);">
                        </td>
                    </tr>
                </tbody>
            </table>
            <div id="divData">		
			<?php if($this->type=='product'){ ?>
				<table width="100%" style="background-color: #E7E7E7;  border-spacing: 1px;  color: #666666;border: 1px solid back;">
					<?php if(count($this->result)){ ?>
					<?php foreach((array)$this->result as $k=>$result){ ?>
					<tr style="border-top: 1px solid #FFFFFF;">
						<td style="padding:9px;" width="112"><img src="admin/images/products/<?php $image=$this->model->getImage($result->id);echo $image[0]->image_name ?>" width="112" height="84" /></td>
						<td style="padding:9px;" align="left"><a href="index.php?c=product&t=details&productid=<?php echo $result->id ?>&o=thong-tin-chung"><?php echo $result->productname ?></a><p><?php echo $result->description  ?></p></td>
					</tr>
					<?php }}else{?>
					<tr style="border-spacing: 1px;color: #666666;">
						<td colspan="2" align="center">Không tìm thấy sản phẩm nào tương ứng với từ khóa của bạn.</td>
					</tr>
					<?php }?>
					<tr>
						<td colspan="2" align="center"><?php $this->displaypagelink($this->pagination) ?></td>
					</tr>
				</table>
			<?php }else{ ?>
				<table width="100%" style="background-color: #E7E7E7;  border-spacing: 1px;  color: #666666;border: 1px solid back;">
					<?php if(count($this->result)){ ?>
					<?php foreach((array)$this->result as $k=>$result){ ?>
					<tr style="border-top: 1px solid #FFFFFF;">
						<td style="padding:9px;" width="112"><img src="admin/images/stories/<?php echo $result->images ?>" width="112" height="84" /></td>
						<td style="padding:9px;" align="left"><a href="index.php?c=news&t=details&id=<?php echo $result->id ?>"><?php echo $result->title ?></a><p><?php echo $result->description  ?></p></td>
					</tr>
					<?php }}else{?>
					<tr style="border-spacing: 1px;color: #666666;">
						<td colspan="2" align="center">Không tìm thấy bài viết nào.</td>
					</tr>
					<?php }?>
					<tr>
						<td colspan="2" align="center"><?php $this->displaypagelink($this->pagination) ?></td>
					</tr>
				</table>
			<?php } ?>
			</div>
</div>